﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace MVVMInWPF
{
    public class MyEntity : INotifyPropertyChanged
    {
        public MyEntity()
        {
            this.time = DateTime.Now.ToString();
        }

        private string time;
        public string Time
        {
            get
            {
                return this.time;
            }
            set
            {
                this.time = value;
                if (this.PropertyChanged != null)
                {
                    this.PropertyChanged(this,new PropertyChangedEventArgs("Time"));
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
